.text
.section .rodata
.align 3
.LC0:
    .string "n = %d\n"

.text
.globl main
.type main, @function
main:
    addi sp, sp, -36
    sd ra, 28(sp)
    sd s0, 20(sp)
    addi s0, sp, 20

    // 分配一下局部变量
    // pp2: -8(s0)
    // p1: -16(s0)
    // n: -20(s0)

    // pp2 = &p1
    addi a5, s0, -16
    sd a5, -8(s0)

    // *pp2 = &n
    ld a5, -8(s0)
    addi a4, s0, -20
    sd a4, (a5)

    ld a5, -16(s0)
    li a4, 10
    sd a4, (a5)

    lw a1, -20(s0)
    lui a5, %hi(.LC0)
    addi a0, a5, %lo(.LC0)
    call printf

    ld ra, 28(sp)
    ld s0, 20(sp)
    addi sp, sp, 36
    jr ra
    